﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MediaPlayer
{
    public partial class ScheduleForm : Form
    {
        public ScheduleForm()
        {
            InitializeComponent();
        }

        private void b_AddTask_Click(object sender, EventArgs e)
        {
            
            TaskForm taskForm = new TaskForm(this);
            taskForm.Show();
            
        }

        private void b_DelTask_Click(object sender, EventArgs e)
        {
            TasklistBox.Items.RemoveAt(TasklistBox.SelectedIndex);
        }

        public void addTask(string str)
        {
            object item = "123";
            item = str;
            TasklistBox.Items.Add(item);
        }
    }
}
